package com.cy.pj.sys.service.impl;

import com.cy.pj.sys.Dao.CGBNoticeDao;
import com.cy.pj.sys.pojo.CGBNotice;
import com.cy.pj.sys.service.CGBNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CGBNoticeServiceImpl implements CGBNoticeService {
    @Autowired
    private CGBNoticeDao cgbNoticeDao;
    @Override
    public int insertNotice(CGBNotice cgbNotice) {
        return cgbNoticeDao.insertNotice(cgbNotice);
    }

    @Override
    public int updateNotice(CGBNotice cgbNotice) {
        return cgbNoticeDao.updateNotice(cgbNotice);
    }

    @Override
    public int deleteNotice(Integer id) {
        return cgbNoticeDao.deleteNotice(id);
    }

    @Override
    public List<CGBNotice> selectByCondition(CGBNotice cgbNotice) {
        return cgbNoticeDao.selectByCondition(cgbNotice);
    }

    @Override
    public CGBNotice selectById(Integer noticeId) {
        return cgbNoticeDao.selectById(noticeId);
    }
}
